package com.jarvis.config.controller;


import com.jarvis.config.entity.ConfigFormworkEntity;
import com.jarvis.config.service.ConfigFormworkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FeignController {

    @Autowired
    private ConfigFormworkService configFormworkService;

    @RequestMapping("/chat/{formwordId}")
    public ConfigFormworkEntity getFormword(@PathVariable("formwordId") long formwordId){
        return configFormworkService.getFormwork(formwordId);
    }


}
